package org.chispa.api.parsers;

import java.util.Map;

import org.chispa.api.util.BadSyntaxException;
import org.chispa.api.util.BinningNumber;
import org.chispa.api.util.ExpressionLanguage;
import org.chispa.api.util.NoSuitableVisitorException;

public interface ParserListener<I> {
	
	public String onLogicalHash(String text) throws NoSuitableVisitorException, BadSyntaxException;
	
	public String onSimpleHash(String text) throws NoSuitableVisitorException, BadSyntaxException;
	
	public String onDecryptText(String enc) throws NoSuitableVisitorException;
	
	public String onEncryptString(String text) throws NoSuitableVisitorException;
	
	public String onEncryptNumber(BinningNumber number,ExpressionLanguage.Type type) throws NoSuitableVisitorException;
	
	public String onLogicalNumberHash(String text,ExpressionLanguage.Type type, Map<String, String> params) throws NoSuitableVisitorException, BadSyntaxException;
	
	public I onSimpleHash(BinningNumber number,ExpressionLanguage.Type type) throws NoSuitableVisitorException, BadSyntaxException;
	

}
